<%--@elvariable id="managerCertSafeDutier_validEndDate_state" type="java.lang.String"--%>
<%--@elvariable id="managerCertSupervisor_validEndDate_state" type="java.lang.String"--%>
<%--@elvariable id="managerCertResponsible_validEndDate_state" type="java.lang.String"--%>
<%--@elvariable id="safeCert_validEndDate_state" type="java.lang.String"--%>
<%--@elvariable id="managerCertSupervisor" type="com.weitu.contractor.entity.ManagerCert"--%>
<%--@elvariable id="managerCertSafeDutier" type="com.weitu.contractor.entity.ManagerCert"--%>
<%--@elvariable id="managerCertResponsible" type="com.weitu.contractor.entity.ManagerCert"--%>
<%--@elvariable id="contractorAudit" type="com.weitu.contractor.entity.ContractorAudit"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib uri="http://workflowReviewTag.weitu.net" prefix="flow" %><!--工作流审批处理标签-->
<!doctype html>
<html lang="zh">
<head>
    <title>承包商资质审查编辑</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/contractor/contractorAudit/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:180px;text-align:center">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
    <a id="btn_submit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-arrow-up fa-lg">提交</a>
</div>
<form id="form1" method="POST">
    <%--@elvariable id="formType" type="java.lang.Integer"--%>
        <c:if test="${param.formType == 1}">
            <div class="information">
                <div class="information-title">
                    <p>审批信息</p>
                    <a class="panel-down" href="javascript:void(0)">
                        <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                    </a>
                </div>
                <div class="cuttle">
                    <div>
                        <!--工作流审批意见-->
                        <%--@elvariable id="workItemId" type="java.lang.String"--%>
                        <flow:review requestName="workflowReview" workItemId="${param.workItemId}"/>
                        <input type="hidden" name="workItemId" value="${param.workItemId}">
                        <input type="hidden" name="formType" value="${param.formType}">
                        <input type="hidden" name="businessId" value="${param.businessId}">
                        <input type="hidden" name="state" value="${param.state}">
                        <input type="hidden" name="auditState" value="${param.auditState}">
                    </div>
                </div>
            </div>
        </c:if>
        <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">承包商名称:</label>
                    <input id="contractorName" name="contractorName" type="text" value="${contractorAudit.contractorName}" style="width:240px;">
                    <input id="contractorId" name="contractorId" value="${contractorAudit.contractorId}" type="hidden" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">承包商类型:</label>
                    <input id="contractorType" name="contractorTypeId" value="${contractorAudit.contractorTypeId}" type="text" style="width: 240px;">
                    <input id="contractorTypeName" name="contractorTypeName" value="${contractorAudit.contractorTypeName}" type="hidden" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否总承包:</label>
                    <select id="isEpc" class="easyui-combobox" name="isEpc" data-options="required:true,editable:false,disabled:true,value:${empty contractorAudit.isEpc ? 0:contractorAudit.isEpc}"
                            style="width:240px;">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </div>
                <div class="form_one">
                    <label class="lable-style">是否建立体系:</label>
                    <select id="isHseSystem" class="easyui-combobox" name="isHseSystem" data-options="required:true,editable:false,value:${empty contractorAudit.isHseSystem ? 0:contractorAudit.isHseSystem}"
                            style="width:240px;">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">安全生产许可编号:</label>
                    <input id="safeCertCode" name="safeCertCode" type="text" class="easyui-textbox readonly" value="${empty contractorAudit.safeProductCert?'':contractorAudit.safeProductCert.certCode}"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">许可开始日期:</label>
                    <input id="validStartDate" name="validStartDate" type="text" class="easyui-datebox readonly" value="${empty contractorAudit.safeProductCert?'':contractorAudit.safeProductCert.validStartDate}"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">许可结束日期:</label>
                    <input id="validEndDate" name="validEndDate" type="text" class="easyui-datebox readonly ${safeCert_validEndDate_state}" value="${empty contractorAudit.safeProductCert?'':contractorAudit.safeProductCert.validEndDate}"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">年度:</label>
                    <input id="year" name="year" type="text" value="${contractorAudit.year}" style="width: 240px;"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">资质开始日期:</label>
                    <input id="contractorIntellStartDate" name="contractorIntellStartDate" type="text" class="easyui-datebox" value="${contractorAudit.contractorIntellStartDate}" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">资质结束日期:</label>
                    <input id="contractorIntellEndDate" name="contractorIntellEndDate" type="text" class="easyui-datebox" value="${contractorAudit.contractorIntellEndDate}" style="width: 240px;">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>负责人资质</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">负责人(法人代表):</label>
                    <input id="responsibleName" name="responsibleName" type="text" value="${contractorAudit.responsibleName}" style="width:240px;">
                    <input id="responsibleId" name="responsibleId" type="hidden" value="${contractorAudit.responsibleId}" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">资格证书编号:</label>
                    <input id="managerCertCode_responsible" name="managerCertCode_responsible" type="text" value="${managerCertResponsible.certCode}" class="easyui-textbox readonly"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">有效开始日期:</label>
                    <input id="validStartDate_responsible" name="validStartDate_responsible" type="text" value="${managerCertResponsible.validStartDate}" class="easyui-datebox readonly"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">有效结束日期:</label>
                    <input id="validEndDate_responsible" name="validEndDate_responsible" type="text" value="${managerCertResponsible.validEndDate}" class="easyui-datebox readonly ${managerCertResponsible_validEndDate_state}"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>主管领导资质</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">主管领导:</label>
                    <input id="supervisorName" name="supervisorName" type="text" value="${contractorAudit.supervisorName}" style="width:240px;">
                    <input id="supervisorId" name="supervisorId" type="hidden" value="${contractorAudit.supervisorId}" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">资格证书编号:</label>
                    <input id="managerCertCode_supervisor" name="managerCertCode_supervisor" type="text" value="${managerCertSupervisor.certCode}" class="easyui-textbox readonly"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">有效开始日期:</label>
                    <input id="validStartDate_supervisor" name="validStartDate_supervisor" type="text" value="${managerCertSupervisor.validStartDate}" class="easyui-datebox readonly"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">有效结束日期:</label>
                    <input id="validEndDate_supervisor" name="validEndDate_supervisor" type="text" value="${managerCertSupervisor.validEndDate}" class="easyui-datebox readonly ${managerCertSupervisor_validEndDate_state}"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>安全负责人资质</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">安全负责人:</label>
                    <input id="safeDutierName" name="safeDutierName" type="text" value="${contractorAudit.safeDutierName}" style="width:240px;">
                    <input id="safeDutierId" name="safeDutierId" type="hidden" value="${contractorAudit.safeDutierId}" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">资格证书编号:</label>
                    <input id="managerCertCode_safeDutier" name="managerCertCode_safeDutier" type="text" value="${managerCertSafeDutier.certCode}" class="easyui-textbox readonly"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">有效开始日期:</label>
                    <input id="validStartDate_safeDutier" name="validStartDate_safeDutier" type="text" value="${managerCertSafeDutier.validStartDate}" class="easyui-datebox readonly"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">有效结束日期:</label>
                    <input id="validEndDate_safeDutier" name="validEndDate_safeDutier" type="text" value="${managerCertSafeDutier.validEndDate}" class="easyui-datebox readonly ${managerCertSafeDutier_validEndDate_state}"
                           data-options="readonly:true,required:true,novalidate:true" style="width: 240px;">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>业务资质信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure">
            <table id="dg1"></table>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>其他信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">近三年事故情况:</label>
                    <input name="remarks" type="text" value="" class="easyui-textbox"
                           data-options="multiline:true,readonly:true" style="height: 60px;width: 959px;"/>
                    <input name="id" type="hidden" class="hide" value="${param.id}">
                    <input name="safeCertId" type="hidden" class="hide" value="${empty contractorAudit.safeProductCert?'':contractorAudit.safeProductCert.id}">
                    <input name="responsibleCertId" type="hidden" class="hide" value="${empty managerCertResponsible?'':managerCertResponsible.id}">
                    <input name="supervisorCertId" type="hidden" class="hide" value="${empty managerCertSupervisor?'':managerCertSupervisor.id}">
                    <input name="safeDutierCertId" type="hidden" class="hide" value="${empty managerCertSafeDutier?'':managerCertSafeDutier.id}">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>安全资质审查历史</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure">
            <table id="dg2"></table>
        </div>
    </div>
</form>
</body>
</html>
